package com.baige.common.core;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * 分页请求对象
 * @author wulg
 * @date 2018/12/13.
 */
@ApiModel(value = "PageNumRequest", description = "分页请求对象")
public class PageNumRequest implements Serializable
{
    @ApiModelProperty(value = "页数")
    @Min(value = 1,message = "页数不能小于1")
    private int pageNum;
    @ApiModelProperty(value = "分页大小")
    @Min(value = 1,message = "每页条数不能小于1")
    @Max(value = 15,message = "每页条数不能大于15")
    private int pageSize;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
